//
//  SubSystemDetailViewController.h
//  Portable Traffic Signal Assistor
//
//  Created by Hao Xu on 4/19/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TableSection.h"
#import "SubSystem.h"
#import "XMLParser.h"
#import "Agency.h"
#import "TimingPatternDetailViewController.h"
#import "IntersectionDetailPage.h"
#import "Intersection.h"
#import "IntersectionExploreMapViewController.h"

@interface SubSystemDetailViewController : UITableViewController<UIAlertViewDelegate, UITextViewDelegate>

@property (nonatomic,retain) NSMutableArray * sections;
//@property (nonatomic,retain) TableSection * agencyNameSection;
@property (nonatomic,retain) TableSection * subSystemNameSection;
@property (nonatomic,retain) TableSection * timePatternListSection;
@property (nonatomic,retain) TableSection * intersectionListSection;
@property (nonatomic,retain) TableSection *linkButtonSection;
@property (nonatomic,retain) NSArray *timePatternList;
@property (nonatomic,retain) UIButton *addtimePatternButton;
@property (nonatomic,retain) SubSystem *subSystem;
@property (nonatomic,retain) Agency *agency;
@property (assign) int publicSender;
@property (nonatomic,retain) UITextView * subSystemNameTextView;
@property (nonatomic,retain) NSArray *intersectionList;
@property (nonatomic,retain) NSIndexPath * deleteIndexPath;
- (void) clickAddTimingPatternButton:(id)sender;
- (id) initWithNibNameAndSubSystem:(NSString *)nibName subSystem:(SubSystem *)subSystem agency:(Agency *)agency bundle:(NSBundle *)nibBundle;
- (IBAction)textViewReturn:(id)sender;

@end
